package com.bwie.remote;

import com.bwie.common.domain.request.LoginRequest;
import com.bwie.common.domain.response.UserInfo;
import com.bwie.common.result.Result;
import com.bwie.remote.focaty.SysUserRemoteFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient("bwie-system")
public interface SysUserRemote {

    /**
     * 根据手机号和密码查询用户信息
     * @param loginRequest
     * @return
     */
    @PostMapping("findByPhoneAndPassword")
    Result<UserInfo> findByPhoneAndPassword(@RequestBody @Valid LoginRequest loginRequest);
}
